package kr.hkit.powerjava.chapter11.submit;

public class Melon extends Food {

	String farm;

	public Melon(String farm) {
		this.farm = farm;
	}

	public String getFarm() {
		return farm;
	}
	public void setFarm(String farm) {
		this.farm = farm;
	}

	@Override
	public String toString() {
		return "멜론 정보 [판매처: " + farm + ", 칼로리: " + getCalorie()
				+ "kal, 가격: " + getPrice() + "원, 중량: " + getWeight()
				+ "kg]";
	}
	
	
	public static void main(String[] args) {
		Melon m = new Melon ("칠곡농원");
		m.setCalorie(38);
		m.setPrice(6000);
		m.setWeight(2);
		System.out.println(m);
	}
}

